import request from '@/utils/request'


export function libraryCateList(query) {
  return request({
    url: '/library/libraryCateList',
    method: 'get',
    params: query
  })
}

export function libraryCateEdit(data) {
  return request({
    url: '/library/libraryCateEdit',
    method: 'post',
    data
  })
}

export function libraryCateDel(query) {
  return request({
    url: '/library/libraryCateDel',
    method: 'get',
    params: query
  })
}

export function libraryList(query) {
  return request({
    url: '/library/libraryList',
    method: 'get',
    params: query
  })
}

export function libraryDel(query) {
  return request({
    url: '/library/libraryDel',
    method: 'get',
    params: query
  })
}

export function libraryEdit(data) {
  return request({
    url: '/library/libraryEdit',
    method: 'post',
    data
  })
}

export function topicList(query) {
  return request({
    url: '/library/topicList',
    method: 'get',
    params: query
  })
}

export function topicEdit(data) {
  return request({
    url: '/library/topicEdit',
    method: 'post',
    data
  })
}

export function topicDel(query) {
  return request({
    url: '/library/topicDel',
    method: 'get',
    params: query
  })
}

export function answerList(query) {
  return request({
    url: '/library/answerList',
    method: 'get',
    params: query
  })
}

export function answerDel(query) {
  return request({
    url: '/library/answerDel',
    method: 'get',
    params: query
  })
}

export function answerEdit(data) {
  return request({
    url: '/library/answerEdit',
    method: 'post',
    data
  })
}

export function commentList(query) {
  return request({
    url: '/library/commentList',
    method: 'get',
    params: query
  })
}

export function commentSubList(query) {
  return request({
    url: '/library/commentSubList',
    method: 'get',
    params: query
  })
}

export function commentDel(data) {
  return request({
    url: '/library/commentDel',
    method: 'post',
    data
  })
}

export function commentSubDel(data) {
  return request({
    url: '/library/commentSubDel',
    method: 'post',
    data
  })
}

export function questionList(query) {
  return request({
    url: '/library/questionList',
    method: 'get',
    params: query
  })
}
export function questionDel(query) {
  return request({
    url: '/library/questionDel',
    method: 'get',
    params: query
  })
}
export function replyList(query) {
  return request({
    url: '/library/replyList',
    method: 'get',
    params: query
  })
}
export function replyDel(query) {
  return request({
    url: '/library/replyDel',
    method: 'get',
    params: query
  })
}

export function buyList(query) {
  return request({
    url: '/library/buyList',
    method: 'get',
    params: query
  })
}
export function roleList(query) {
  return request({
    url: '/library/roleList',
    method: 'get',
    params: query
  })
}
export function roleEdit(data) {
  return request({
    url: '/library/roleEdit',
    method: 'post',
    data
  })
}
